home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / t3_1 / xlib.lha / xlib / Xkeysym.cdecl < prev    next >
Text File  |  1990-05-29  |  14KB  |  412 lines

  1. ; Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  2. ; and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  3. ;
  4. ;                         All Rights Reserved
  5. ;
  6. ; Permission to use, copy, modify, and distribute this software and its 
  7. ; documentation for any purpose and without fee is hereby granted, 
  8. ; provided that the above copyright notice appear in all copies and that
  9. ; both that copyright notice and this permission notice appear in 
  10. ; supporting documentation, and that the names of Digital or MIT not be
  11. ; used in advertising or publicity pertaining to distribution of the
  12. ; software without specific, written prior permission.  
  13. ;
  14. ; DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  15. ; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  16. ; DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  17. ; ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  18. ; WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  19. ; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  20. ; SOFTWARE.
  21.  
  22. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  23. ;;;                                       ;;;
  24. ;;;    N.B.  Contains  XK_MISCELLANY,XK_LATIN1, and DXK_PRIVATE       ;;;
  25. ;;;                                       ;;;
  26. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  27.  
  28. ;*
  29. ;* TTY Functions, cleverly chosen to map to ascii, for convenience of
  30. ;* programming, but could have been arbitrary (at the cost of lookup
  31. ;* tables in client code.
  32. ;*
  33.  
  34. (const  XK_BackSpace        #xFF08)    ;; back space, back char 
  35. (const  XK_Tab            #xFF09)
  36. (const  XK_Linefeed        #xFF0A)    ;; Linefeed, LF 
  37. (const  XK_Clear        #xFF0B)
  38. (const  XK_Return        #xFF0D)    ;; Return, enter 
  39. (const  XK_Pause        #xFF13)    ;; Pause, hold, scroll lock 
  40. (const  XK_Escape        #xFF1B)
  41. (const  XK_Delete        #xFFFF)    ;; Delete, rubout 
  42.  
  43.  
  44.  
  45. ;; International & multi-key character composition 
  46.  
  47. (const  XK_Multi_key        #xFF20) ;; Multi-key character compose 
  48. (const  XK_Kanji        #xFF21) ;; Kanji, Kanji convert 
  49.  
  50. ;; Cursor control & motion 
  51.  
  52. (const  XK_Home            #xFF50)
  53. (const  XK_Left            #xFF51)    ;; Move left, left arrow 
  54. (const  XK_Up            #xFF52)    ;; Move up, up arrow 
  55. (const  XK_Right        #xFF53)    ;; Move right, right arrow 
  56. (const  XK_Down            #xFF54)    ;; Move down, down arrow 
  57. (const  XK_Prior        #xFF55)    ;; Prior, previous 
  58. (const  XK_Next            #xFF56)    ;; Next 
  59. (const  XK_End            #xFF57)    ;; EOL 
  60. (const  XK_Begin        #xFF58)    ;; BOL 
  61.  
  62.  
  63. ;; Misc Functions 
  64.  
  65. (const  XK_Select        #xFF60)    ;; Select, mark 
  66. (const  XK_Print        #xFF61)
  67. (const  XK_Execute        #xFF62)    ;; Execute, run, do 
  68. (const  XK_Insert        #xFF63)    ;; Insert, insert here 
  69. (const  XK_Undo            #xFF65)    ;; Undo, oops 
  70. (const  XK_Redo            #xFF66)    ;; redo, again 
  71. (const  XK_Menu            #xFF67)
  72. (const  XK_Find            #xFF68)    ;; Find, search 
  73. (const  XK_Cancel        #xFF69)    ;; Cancel, stop, abort, exit 
  74. (const  XK_Help            #xFF6A)    ;; Help, ? 
  75. (const  XK_Break        #xFF6B)
  76. (const  XK_Mode_switch        #xFF7E)    ;; Character set switch 
  77. (const  XK_script_switch        #xFF7E) ;; Alias for mode_switch 
  78. (const  XK_Num_Lock        #xFF7F)
  79.  
  80. ;; Keypad Functions, keypad numbers cleverly chosen to map to ascii 
  81.  
  82. (const  XK_KP_Space        #xFF80)    ;; space 
  83. (const  XK_KP_Tab        #xFF89)
  84. (const  XK_KP_Enter        #xFF8D)    ;; enter 
  85. (const  XK_KP_F1        #xFF91)    ;; PF1, KP_A, ... 
  86. (const  XK_KP_F2        #xFF92)
  87. (const  XK_KP_F3        #xFF93)
  88. (const  XK_KP_F4        #xFF94)
  89. (const  XK_KP_Equal        #xFFBD)    ;; equals 
  90. (const  XK_KP_Multiply        #xFFAA)
  91. (const  XK_KP_Add        #xFFAB)
  92. (const  XK_KP_Separator        #xFFAC)    ;; separator, often comma 
  93. (const  XK_KP_Subtract        #xFFAD)
  94. (const  XK_KP_Decimal        #xFFAE)
  95. (const  XK_KP_Divide        #xFFAF)
  96.  
  97. (const  XK_KP_0            #xFFB0)
  98. (const  XK_KP_1            #xFFB1)
  99. (const  XK_KP_2            #xFFB2)
  100. (const  XK_KP_3            #xFFB3)
  101. (const  XK_KP_4            #xFFB4)
  102. (const  XK_KP_5            #xFFB5)
  103. (const  XK_KP_6            #xFFB6)
  104. (const  XK_KP_7            #xFFB7)
  105. (const  XK_KP_8            #xFFB8)
  106. (const  XK_KP_9            #xFFB9)
  107.  
  108.  
  109.  
  110. ;*
  111. ;* Auxilliary Functions; note the duplicate definitions for left and right
  112. ;* function keys;  Sun keyboards and a few other manufactures have such
  113. ;* function key groups on the left and/or right sides of the keyboard.
  114. ;* We've not found a keyboard with more than 35 function keys total.
  115. ;*
  116.  
  117. (const  XK_F1            #xFFBE)
  118. (const  XK_F2            #xFFBF)
  119. (const  XK_F3            #xFFC0)
  120. (const  XK_F4            #xFFC1)
  121. (const  XK_F5            #xFFC2)
  122. (const  XK_F6            #xFFC3)
  123. (const  XK_F7            #xFFC4)
  124. (const  XK_F8            #xFFC5)
  125. (const  XK_F9            #xFFC6)
  126. (const  XK_F10            #xFFC7)
  127. (const  XK_F11            #xFFC8)
  128. (const  XK_L1            #xFFC8)
  129. (const  XK_F12            #xFFC9)
  130. (const  XK_L2            #xFFC9)
  131. (const  XK_F13            #xFFCA)
  132. (const  XK_L3            #xFFCA)
  133. (const  XK_F14            #xFFCB)
  134. (const  XK_L4            #xFFCB)
  135. (const  XK_F15            #xFFCC)
  136. (const  XK_L5            #xFFCC)
  137. (const  XK_F16            #xFFCD)
  138. (const  XK_L6            #xFFCD)
  139. (const  XK_F17            #xFFCE)
  140. (const  XK_L7            #xFFCE)
  141. (const  XK_F18            #xFFCF)
  142. (const  XK_L8            #xFFCF)
  143. (const  XK_F19            #xFFD0)
  144. (const  XK_L9            #xFFD0)
  145. (const  XK_F20            #xFFD1)
  146. (const  XK_L10            #xFFD1)
  147. (const  XK_F21            #xFFD2)
  148. (const  XK_R1            #xFFD2)
  149. (const  XK_F22            #xFFD3)
  150. (const  XK_R2            #xFFD3)
  151. (const  XK_F23            #xFFD4)
  152. (const  XK_R3            #xFFD4)
  153. (const  XK_F24            #xFFD5)
  154. (const  XK_R4            #xFFD5)
  155. (const  XK_F25            #xFFD6)
  156. (const  XK_R5            #xFFD6)
  157. (const  XK_F26            #xFFD7)
  158. (const  XK_R6            #xFFD7)
  159. (const  XK_F27            #xFFD8)
  160. (const  XK_R7            #xFFD8)
  161. (const  XK_F28            #xFFD9)
  162. (const  XK_R8            #xFFD9)
  163. (const  XK_F29            #xFFDA)
  164. (const  XK_R9            #xFFDA)
  165. (const  XK_F30            #xFFDB)
  166. (const  XK_R10            #xFFDB)
  167. (const  XK_F31            #xFFDC)
  168. (const  XK_R11            #xFFDC)
  169. (const  XK_F32            #xFFDD)
  170. (const  XK_R12            #xFFDD)
  171. (const  XK_R13            #xFFDE)
  172. (const  XK_F33            #xFFDE)
  173. (const  XK_F34            #xFFDF)
  174. (const  XK_R14            #xFFDF)
  175. (const  XK_F35            #xFFE0)
  176. (const  XK_R15            #xFFE0)
  177.  
  178. ;; Modifiers 
  179.  
  180. (const  XK_Shift_L        #xFFE1)    ;; Left shift 
  181. (const  XK_Shift_R        #xFFE2)    ;; Right shift 
  182. (const  XK_Control_L        #xFFE3)    ;; Left control 
  183. (const  XK_Control_R        #xFFE4)    ;; Right control 
  184. (const  XK_Caps_Lock        #xFFE5)    ;; Caps lock 
  185. (const  XK_Shift_Lock        #xFFE6)    ;; Shift lock 
  186.  
  187. (const  XK_Meta_L        #xFFE7)    ;; Left meta 
  188. (const  XK_Meta_R        #xFFE8)    ;; Right meta 
  189. (const  XK_Alt_L        #xFFE9)    ;; Left alt 
  190. (const  XK_Alt_R        #xFFEA)    ;; Right alt 
  191. (const  XK_Super_L        #xFFEB)    ;; Left super 
  192. (const  XK_Super_R        #xFFEC)    ;; Right super 
  193. (const  XK_Hyper_L        #xFFED)    ;; Left hyper 
  194. (const  XK_Hyper_R        #xFFEE)    ;; Right hyper 
  195.  
  196. ;*
  197. ;*  Latin 1
  198. ;*  Byte 3 = 0
  199. ;*
  200.  
  201. (const  XK_space               #x020)
  202. (const  XK_exclam              #x021)
  203. (const  XK_quotedbl            #x022)
  204. (const  XK_numbersign          #x023)
  205. (const  XK_dollar              #x024)
  206. (const  XK_percent             #x025)
  207. (const  XK_ampersand           #x026)
  208. (const  XK_quoteright          #x027)
  209. (const  XK_parenleft           #x028)
  210. (const  XK_parenright          #x029)
  211. (const  XK_asterisk            #x02a)
  212. (const  XK_plus                #x02b)
  213. (const  XK_comma               #x02c)
  214. (const  XK_minus               #x02d)
  215. (const  XK_period              #x02e)
  216. (const  XK_slash               #x02f)
  217. (const  XK_0                   #x030)
  218. (const  XK_1                   #x031)
  219. (const  XK_2                   #x032)
  220. (const  XK_3                   #x033)
  221. (const  XK_4                   #x034)
  222. (const  XK_5                   #x035)
  223. (const  XK_6                   #x036)
  224. (const  XK_7                   #x037)
  225. (const  XK_8                   #x038)
  226. (const  XK_9                   #x039)
  227. (const  XK_colon               #x03a)
  228. (const  XK_semicolon           #x03b)
  229. (const  XK_less                #x03c)
  230. (const  XK_equal               #x03d)
  231. (const  XK_greater             #x03e)
  232. (const  XK_question            #x03f)
  233. (const  XK_at                  #x040)
  234. (const  XK_A                   #x041)
  235. (const  XK_B                   #x042)
  236. (const  XK_C                   #x043)
  237. (const  XK_D                   #x044)
  238. (const  XK_E                   #x045)
  239. (const  XK_F                   #x046)
  240. (const  XK_G                   #x047)
  241. (const  XK_H                   #x048)
  242. (const  XK_I                   #x049)
  243. (const  XK_J                   #x04a)
  244. (const  XK_K                   #x04b)
  245. (const  XK_L                   #x04c)
  246. (const  XK_M                   #x04d)
  247. (const  XK_N                   #x04e)
  248. (const  XK_O                   #x04f)
  249. (const  XK_P                   #x050)
  250. (const  XK_Q                   #x051)
  251. (const  XK_R                   #x052)
  252. (const  XK_S                   #x053)
  253. (const  XK_T                   #x054)
  254. (const  XK_U                   #x055)
  255. (const  XK_V                   #x056)
  256. (const  XK_W                   #x057)
  257. (const  XK_X                   #x058)
  258. (const  XK_Y                   #x059)
  259. (const  XK_Z                   #x05a)
  260. (const  XK_bracketleft         #x05b)
  261. (const  XK_backslash           #x05c)
  262. (const  XK_bracketright        #x05d)
  263. (const  XK_asciicircum         #x05e)
  264. (const  XK_underscore          #x05f)
  265. (const  XK_quoteleft           #x060)
  266. (const  XK_lca                 #x061)
  267. (const  XK_lcb                 #x062)
  268. (const  XK_lcc                 #x063)
  269. (const  XK_lcd                 #x064)
  270. (const  XK_lce                 #x065)
  271. (const  XK_lcf                 #x066)
  272. (const  XK_lcg                 #x067)
  273. (const  XK_lch                 #x068)
  274. (const  XK_lci                 #x069)
  275. (const  XK_lcj                 #x06a)
  276. (const  XK_lck                 #x06b)
  277. (const  XK_lcl                 #x06c)
  278. (const  XK_lcm                 #x06d)
  279. (const  XK_lcn                 #x06e)
  280. (const  XK_lco                 #x06f)
  281. (const  XK_lcp                 #x070)
  282. (const  XK_lcq                 #x071)
  283. (const  XK_lcr                 #x072)
  284. (const  XK_lcs                 #x073)
  285. (const  XK_lct                 #x074)
  286. (const  XK_lcu                 #x075)
  287. (const  XK_lcv                 #x076)
  288. (const  XK_lcw                 #x077)
  289. (const  XK_lcx                 #x078)
  290. (const  XK_lcy                 #x079)
  291. (const  XK_lcz                 #x07a)
  292. (const  XK_braceleft           #x07b)
  293. (const  XK_bar                 #x07c)
  294. (const  XK_braceright          #x07d)
  295. (const  XK_asciitilde          #x07e)
  296.  
  297. (const  XK_nobreakspace        #x0a0)
  298. (const  XK_exclamdown          #x0a1)
  299. (const  XK_cent                   #x0a2)
  300. (const  XK_sterling            #x0a3)
  301. (const  XK_currency            #x0a4)
  302. (const  XK_yen                 #x0a5)
  303. (const  XK_brokenbar           #x0a6)
  304. (const  XK_section             #x0a7)
  305. (const  XK_diaeresis           #x0a8)
  306. (const  XK_copyright           #x0a9)
  307. (const  XK_ordfeminine         #x0aa)
  308. (const  XK_guillemotleft       #x0ab)    ;; left angle quotation mark 
  309. (const  XK_notsign             #x0ac)
  310. (const  XK_hyphen              #x0ad)
  311. (const  XK_registered          #x0ae)
  312. (const  XK_macron              #x0af)
  313. (const  XK_degree              #x0b0)
  314. (const  XK_plusminus           #x0b1)
  315. (const  XK_twosuperior         #x0b2)
  316. (const  XK_threesuperior       #x0b3)
  317. (const  XK_acute               #x0b4)
  318. (const  XK_mu                  #x0b5)
  319. (const  XK_paragraph           #x0b6)
  320. (const  XK_periodcentered      #x0b7)
  321. (const  XK_cedilla             #x0b8)
  322. (const  XK_onesuperior         #x0b9)
  323. (const  XK_masculine           #x0ba)
  324. (const  XK_guillemotright      #x0bb)    ;; right angle quotation mark 
  325. (const  XK_onequarter          #x0bc)
  326. (const  XK_onehalf             #x0bd)
  327. (const  XK_threequarters       #x0be)
  328. (const  XK_questiondown        #x0bf)
  329. (const  XK_Agrave              #x0c0)
  330. (const  XK_Aacute              #x0c1)
  331. (const  XK_Acircumflex         #x0c2)
  332. (const  XK_Atilde              #x0c3)
  333. (const  XK_Adiaeresis          #x0c4)
  334. (const  XK_Aring               #x0c5)
  335. (const  XK_AE                  #x0c6)
  336. (const  XK_Ccedilla            #x0c7)
  337. (const  XK_Egrave              #x0c8)
  338. (const  XK_Eacute              #x0c9)
  339. (const  XK_Ecircumflex         #x0ca)
  340. (const  XK_Ediaeresis          #x0cb)
  341. (const  XK_Igrave              #x0cc)
  342. (const  XK_Iacute              #x0cd)
  343. (const  XK_Icircumflex         #x0ce)
  344. (const  XK_Idiaeresis          #x0cf)
  345. (const  XK_Eth                 #x0d0)
  346. (const  XK_Ntilde              #x0d1)
  347. (const  XK_Ograve              #x0d2)
  348. (const  XK_Oacute              #x0d3)
  349. (const  XK_Ocircumflex         #x0d4)
  350. (const  XK_Otilde              #x0d5)
  351. (const  XK_Odiaeresis          #x0d6)
  352. (const  XK_multiply            #x0d7)
  353. (const  XK_Ooblique            #x0d8)
  354. (const  XK_Ugrave              #x0d9)
  355. (const  XK_Uacute              #x0da)
  356. (const  XK_Ucircumflex         #x0db)
  357. (const  XK_Udiaeresis          #x0dc)
  358. (const  XK_Yacute              #x0dd)
  359. (const  XK_Thorn               #x0de)
  360. (const  XK_ssharp              #x0df)
  361. (const  XK_lcagrave             #x0e0)
  362. (const  XK_lcaacute             #x0e1)
  363. (const  XK_lcacircumflex        #x0e2)
  364. (const  XK_lcatilde             #x0e3)
  365. (const  XK_lcadiaeresis         #x0e4)
  366. (const  XK_lcaring              #x0e5)
  367. (const  XK_lcae                 #x0e6)
  368. (const  XK_lcccedilla           #x0e7)
  369. (const  XK_lcegrave             #x0e8)
  370. (const  XK_lceacute             #x0e9)
  371. (const  XK_lcecircumflex        #x0ea)
  372. (const  XK_lcediaeresis         #x0eb)
  373. (const  XK_lcigrave             #x0ec)
  374. (const  XK_lciacute             #x0ed)
  375. (const  XK_lcicircumflex        #x0ee)
  376. (const  XK_lcidiaeresis         #x0ef)
  377. (const  XK_lceth                #x0f0)
  378. (const  XK_lcntilde             #x0f1)
  379. (const  XK_lcograve             #x0f2)
  380. (const  XK_lcoacute             #x0f3)
  381. (const  XK_lcocircumflex        #x0f4)
  382. (const  XK_lcotilde             #x0f5)
  383. (const  XK_lcodiaeresis         #x0f6)
  384. (const  XK_division            #x0f7)
  385. (const  XK_oslash              #x0f8)
  386. (const  XK_lcugrave             #x0f9)
  387. (const  XK_lcuacute             #x0fa)
  388. (const  XK_lcucircumflex        #x0fb)
  389. (const  XK_lcudiaeresis         #x0fc)
  390. (const  XK_lcyacute             #x0fd)
  391. (const  XK_lcthorn              #x0fe)
  392. (const  XK_ydiaeresis          #x0ff)
  393.  
  394. ;*
  395. ;* DEC private keysyms
  396. ;* (29th bit set)
  397. ;*
  398.  
  399. ;* two-key compose sequence initiators, chosen to map to Latin1 characters 
  400.  
  401. (const  DXK_ring_accent        #x1000FEB0)
  402. (const  DXK_circumflex_accent    #x1000FE5E)
  403. (const  DXK_cedilla_accent    #x1000FE2C)
  404. (const  DXK_acute_accent    #x1000FE27)
  405. (const  DXK_grave_accent    #x1000FE60)
  406. (const  DXK_tilde        #x1000FE7E)
  407. (const  DXK_diaeresis        #x1000FE22)
  408.  
  409. ;* special keysym for LK2** "Remove" key on editing keypad 
  410.  
  411. (const  DXK_Remove        #x1000FF00)
  412.